neuron: ppe.c spe_learn_csf.o spe_check_csf.o
	gcc ppe.c spe_learn_csf.o spe_check_csf.o -lspe -lm -o neuron

spe_check_csf.o: spe_check
	ppu32-embedspu spe_fun_handle_check spe_check spe_check_csf.o

spe_learn_csf.o: spe_learn
	ppu32-embedspu spe_fun_handle_learn spe_learn spe_learn_csf.o

spe_check: spe_check.c
	spu-gcc spe_check.c -o spe_check

spe_learn: spe_learn.c
	spu-gcc spe_learn.c -lm -o spe_learn